/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LEGION
 * Date: 2023-04-16
 * Time: 8:53
 */
public class J230416 {
    public static void main(String[] args) {
        int j = 0;
        for (int i = 0; i <= 100 ; i++) {
            if (i / 10 == 9) {
                j++;
            }
            if (i % 10 == 9) {
                j++;
            }
        }
        System.out.println(j);
    }
}
